package com.plm.frame.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.plm.frame.mapper.AdminMapper;
import com.plm.frame.model.Admin;
import com.plm.frame.service.AdminService;



@Service
@Transactional  //此处不再进行创建SqlSession和提交事务，都已交由spring去管理了。
public class AdminServiceImpl implements AdminService {
	
	@Resource
	private AdminMapper mapper;


	@Override
	public Admin checkUser(Admin admin) {
		return mapper.checkUser(admin);
	}
	

}
